import { pubStyles } from '../constant';
import { cloneDeep } from 'lodash';
export const WidgetSelect = {
    type: 'widget-select',
    label: '下拉选择框',
    icon: 'icon-icon-pull-down',
    options: {
        setups: [
            {
                type: 'el-input',
                label: '组件名称',
                name: 'componentName',
                required: false,
                placeholder: '',
                value: '下拉选择框'
            },
            {
                type: 'datasetComponentType',
                label: '关联数据集',
                name: 'associatedDatasets',
                required: true,
                placeholder: '',
                value: {}
            },
            {
                type: 'linkageSettingType',
                label: '联动设置',
                name: 'linkageSetting',
                required: false,
                placeholder: '',
                value: {}
            }
        ],
        styles: [...cloneDeep(pubStyles)]
        // events: [],
        // data: [
        //     {
        //         name: 'mockData',
        //         value: [
        //             {
        //                 label: '2022年',
        //                 value: '2022'
        //             },
        //             {
        //                 label: '2021年',
        //                 value: '2021'
        //             }
        //         ]
        //     }
        // ]
    }
};
